Skip to content

Conversation

minhtc-tech
Copy link

  • The npm run lint returns a warning about the bootstrap function inside main.ts.
  • Since this function is being used at the top level of a CommonJS module, we cannot use await here.
  • We should fix it by adding the keyword void to mark the Promise bootstrap function as intentionally not awaited.
  • References: https://typescript-eslint.io/rules/no-floating-promises/#ignorevoid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant